﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace wowdpssim.player
{
    class PlayerC
    {
        basestats.BaseStatsC BaseStats;
        defenses.DefensesC Defenses;
        melee.MeleeC Melee;
        ranged.RangedC Ranged;
        spell.SpellC Spell;
        klass.ClassC Class;
        race.RaceC Race;

        public PlayerC()
        {
            BaseStats = new wowdpssim.basestats.BaseStatsC();
            Defenses = new wowdpssim.defenses.DefensesC();
            Melee = new wowdpssim.melee.MeleeC();
            Ranged = new wowdpssim.ranged.RangedC();
            Spell = new wowdpssim.spell.SpellC();
        }

        public void setPlayerClass(klass.ClassC.ClassEnumType Class)
        {
            switch (Class)
            {
                case klass.ClassC.ClassEnumType.ROGUE:
                    this.Class = new klass.RogueC();
                    break;
                default:
                    break;
            };
        }

        public void setPlayerRace(race.RaceC.RaceEnumType Race)
        {
            switch (Race)
            {
                case race.RaceC.RaceEnumType.UNDEAD:
                    this.Race = new race.UndeadC();
                    break;
                default:

                    break;
            };
        }
        
        public void init()
        {
            BaseStats.add(Race);
        }
    }
}
